package com.shy.bean.replacemethod;

import org.springframework.beans.factory.support.MethodReplacer;

import java.lang.reflect.Method;
import java.util.Arrays;

public class ReplaceDog implements MethodReplacer {
    @Override
    public Object reimplement(Object o, Method method, Object[] objects) throws Throwable {
        System.out.println("Hello, I am a white dog...");
        Arrays.stream(objects).forEach(str -> System.out.println("参数：" + str));
        return o;
    }
}
